<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<script type="text/javascript">
		$(function(){
			$('#parentValue_meaning').val(value_meaningName);
			$('#add_dict_form').bootstrapValidator({
		        feedbackIcons: {/*输入框不同状态，显示图片的样式*/
		            valid: 'glyphicon glyphicon-ok',
		            invalid: 'glyphicon glyphicon-remove',
		            validating: 'glyphicon glyphicon-refresh'
		        },
		        fields: {
		        	value_meaning:{
		                validators: {
		                    notEmpty: {
		                        message: '数据名称不能为空'
		                    }
		                }
		        	},
		        	key_code:{
		                validators: {
		                    notEmpty: {
		                        message: '数据编码不能为空'
		                    }
		                }
		        	},
		        	sort_order:{
		                validators: {
		                    notEmpty: {
		                        message: '排序序号不能为空'
		                    },
		                    regexp: {/* 只需加此键值对，包含正则表达式，和提示 */
		                        regexp: /^[0-9]+$/,
		                        message: '只能是数字!'
		                    }
		                }
		        	}
		        }
			});
		});
	</script>
</head>
<body>
	<form id="add_dict_form" method="post" >
	    <div class="form-group">
	        <label for="parentValue_meaning">上级数据名称</label>
	        <input class="form-control" id="parentValue_meaning" name="parentValue_meaning" disabled></input>
	    </div>
	    <div class="form-group">
	        <label for="value_meaning">数据名称</label>
	        <input class="form-control" id="value_meaning" name="value_meaning"></input>
	    </div>	
	    <div class="form-group">
	        <label for="key_code">数据编码</label>
	        <input class="form-control" id="key_code" name="key_code"></input>
	    </div>
	    
	    <div class="form-group">
	        <label for="sort_order">排序序号</label>
	        <input class="form-control" id="sort_order" name="sort_order"></input>
	    </div>
	    
	    <div class="form-group">
	        <label for="remark">备注</label>
	        <textarea rows="5" class="form-control" id="remark" style="resize: none;"></textarea>
	    </div>
	</form>
</body>
</html>